Results 1 to 12 of 12

Thread: facbook link not accepted “&” ie ampersand when i post the link through my link

  1. #1
    Join Date
    Apr 2011
    Posts
    25
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default facbook link not accepted “&” ie ampersand when i post the link through my link

    hello friends,I am working on app where i have to post the video link to facebook,so i have used the postfeed project for facebook which is present in git repository,my link appears in the below way
    http://xyz.abc.com.aspx?streamid=223322&id=1400...
    now it accepts till http://xyz.abc.com.aspx?streamid=223322
    and i can post the link till here,but as soon as i add the later part ie&id=1400,its not posting it,so what is the problem with that "&",please help me out..



    regards
    anshuman

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: facbook link not accepted “&” ie ampersand when i post the link through my link

    How do you "add the later part"?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2011
    Posts
    25
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Re: facbook link not accepted “&” ie ampersand when i post the link through my link

    the code i have written is like this..u please check where i have done mistake..

    void VideoPage::OnFacebook()
    {

    PostFeed *pPostFeed=new PostFeed;
    QUrl url;
    url.setUrl("http://xyz.abc.com.aspx?");


    url.addQueryItem("streamid", video.url);
    url.addQueryItem("id","1400");
    url.addQueryItem("type","video-mp4");//mp4
    url.addQueryItem("redirect","false");
    pPostFeed->setPostText(url.toString());
    pPostFeed->showFullScreen();


    }

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: facbook link not accepted “&” ie ampersand when i post the link through my link

    What is PostFeed? What does it do with the argument received in the setPostText() method?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Apr 2011
    Posts
    25
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Re: facbook link not accepted “&” ie ampersand when i post the link through my link

    its is an pointer object to an postfeed class..its sent the url in the form of string to the set the url in the textbox present in postfeed class..

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: facbook link not accepted “&” ie ampersand when i post the link through my link

    Quote Originally Posted by Anshuman View Post
    its is an pointer object to an postfeed class.
    I'm asking about the class itself. Did you write it or are you just using it?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Apr 2011
    Posts
    25
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Re: facbook link not accepted “&” ie ampersand when i post the link through my link

    yeh there is a method in that postfeed class named "setPostTest()".. where i simply set the url in textedit box


    void PostFeed::setPostText(QString str)
    {
    ui->textEdit->setPlainText(str);
    }

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: facbook link not accepted “&” ie ampersand when i post the link through my link

    What happens with the text then? Does the text edit contain the proper link text? How do you upload the post to the server?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Apr 2011
    Posts
    25
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Re: facbook link not accepted “&” ie ampersand when i post the link through my link

    actually now i updated the code..now what happened the link is share in the facebook but only thing is that..the link before "&" is only shared..that means if i share

    http://xyz.abc.com.aspx?streamid=223322&id=1400...

    then in face it comes as http://xyz.abc.com.aspx?streamid=223322..my updated code is:

    PostFeed *pPostFeed=new PostFeed;
    QUrl url;
    url.setUrl("http://xyz.abc.com.aspx?");


    url.addQueryItem("streamid", video.url);

    url.addQueryItem("%26id","1400"); //add %26

    url.addQueryItem("%26type","video-mp4");//mp4

    url.addQueryItem("%26redirect","false");

    pPostFeed->setPostText(url.toString());

    pPostFeed->showFullScreen();

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: facbook link not accepted “&” ie ampersand when i post the link through my link

    You're performing the upload incorrectly.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Apr 2011
    Posts
    25
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Re: facbook link not accepted “&” ie ampersand when i post the link through my link

    can u please suggest me hw this can be done...

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: facbook link not accepted “&” ie ampersand when i post the link through my link

    Quote Originally Posted by Anshuman View Post
    can u please suggest me hw this can be done...
    No, because I have already asked you how you were uploading the post to the server and you ignored my question.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. How to link a Push Button with a Web link ???
    By prajnaranjan.das in forum Newbie
    Replies: 3
    Last Post: 10th December 2010, 07:25
  2. How to link .exe to dll ?
    By babygal in forum Newbie
    Replies: 19
    Last Post: 19th May 2010, 09:30
  3. Link as a dll
    By bmahf in forum Newbie
    Replies: 8
    Last Post: 15th October 2009, 19:21
  4. qt < -- > mfc serial link
    By klitsuk in forum Qt Programming
    Replies: 3
    Last Post: 27th February 2009, 13:44
  5. How I link a dll?
    By brevleq in forum Qt Programming
    Replies: 3
    Last Post: 15th December 2007, 02:39

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.